/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package lineage.ui.customize;

import javax.swing.JList;
import javax.swing.JToolTip;
import javax.swing.ListModel;

/**
 * 自定义JList.
 * 
 * @version 2014年2月24日下午2:29:42
 * @author jrwz
 */
public class L1CustomizeJList extends JList<Object> {
    private static final long serialVersionUID = -8893807843982780567L;

    /**
     * 根据指定的非 null 模型构造一个显示元素的 JList。所有 JList 构造方法都委托给此方法。
     * 此构造方法向 ToolTipManager 注册列表，允许工具提示由单元渲染器提供。
     * 
     * @param dataModel
     *            - 该列表的模型
     * @exception IllegalArgumentException
     *                - 如果模型为 null
     */
    public L1CustomizeJList(ListModel<Object> dataModel) {
        super(dataModel);
    }

    // 重写以便实现自定义标签提示框
    @Override
    public JToolTip createToolTip() {
        return new L1ToolTip();
    }
}
